import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import 'vant/lib/index.css'
import './style.css'




import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
const pinia = createPinia()
pinia.use(piniaPluginPersist)
pinia.use(({store})=>{
const initialState = JSON.parse(JSON.stringify(store.$state));
 store.$reset = ()=>{
 store.$state = JSON.parse(JSON.stringify(initialState));
 }
});
import router from './router'
createApp(App).use(pinia).use(router).mount('#app')
